// start at 22:48
#include <stdio.h>
#include <string.h>
int person[110];
int i, j, k;
int n, d;

int main()
{
    while (scanf("%d%d", &n, &d)!=EOF)
    {
        if (n==0 && d==0) break;
        memset(person, 0, sizeof(person));
        for (i = 1; i<=d; ++i)
                for (j=1; j<=n; ++j)
                {
                    scanf("%d", &k);
                    person[j] += k;
                }    
                
        
        for (i=1; i<=n; ++i)
            if (person[i] == d)
                        break;
        if (i>n) printf("no\n");
        else printf("yes\n");
    }        
    return 0;
}    